home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gnat1792.zip / gnat179b / t-adainc / s-errrep.adb < prev    next >
Text File  |  1994-05-19  |  3KB  |  55 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS                --
  4. --                                                                          --
  5. --               S Y S T E M . E R R O R _ R E P O R T I N G                --
  6. --                                                                          --
  7. --                                 B o d y                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.3 $                              --
  10. --                                                                          --
  11. --          Copyright (c) 1991,1992,1993, FSU, All Rights Reserved          --
  12. --                                                                          --
  13. --  GNARL is free software; you can redistribute it and/or modify it  under --
  14. --  terms  of  the  GNU  Library General Public License as published by the --
  15. --  Free Software Foundation; either version 2, or (at  your  option)  any  --
  16. --  later  version.   GNARL is distributed in the hope that it will be use- --
  17. --  ful, but but WITHOUT ANY WARRANTY; without even the implied warranty of --
  18. --  MERCHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. --  eral Library Public License for more details.  You should have received --
  20. --  a  copy of the GNU Library General Public License along with GNARL; see --
  21. --  file COPYING. If not, write to the Free Software Foundation,  675  Mass --
  22. --  Ave, Cambridge, MA 02139, USA.                                          --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. with System.Task_Primitives;
  27.  
  28. package body System.Error_Reporting is
  29.  
  30.    Assertions_Checked : constant Boolean := True;
  31.  
  32.    -------------
  33.    --  Assert --
  34.    -------------
  35.  
  36.    procedure Assert (B : Boolean; M : String) is
  37.    begin
  38.       if Assertions_Checked then
  39.          Task_Primitives.LL_Assert (B, M);
  40.       end if;
  41.    end Assert;
  42.  
  43.    -----------------------------
  44.    -- Unimplemented_Operation --
  45.    -----------------------------
  46.  
  47.    procedure Unimplemented_Operation is
  48.       Unimplemented_Error : exception;
  49.  
  50.    begin
  51.       raise Unimplemented_Error;
  52.    end Unimplemented_Operation;
  53.  
  54. end System.Error_Reporting;
  55.